<?php
/**
 * This is an interface for the page with user interaction
 * @author Honza
 */
interface IMainBodyWithInteraction extends IMainBody {
  /**
   * This method handles specified actions. Please use $_GET['a'] for an action
   */
  public function action();
  
  /**
   * This method handles data send by specified form.
   * @param type $formID inner id of the form
   */
  public function applyForm($formID = NULL);
  
  /**
   * This method creates specified form.
   * @param type $formID inner id of the form
   * @param type $error error message (string)
   * @return form (html string)
   */
  public function getForm($formID = NULL, $error = NULL);
  
  /**
   * @return inner number of the form which has been submited
   */
  public function getSubmitedForm();
  
  /**
   * 
   * @param type $tableID inner number of table
   * @return table (html string)
   */
  public function getTable($tableID = NULL);
  
  
}
?>
